package com.xx;

import com.netflix.hystrix.contrib.metrics.eventstream.HystrixMetricsStreamServlet;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;

@EnableEurekaClient //向Eureka中注册服务
@SpringBootApplication
@EnableCircuitBreaker //熔断器
public class Provider01 {
    public static void main(String[] args) {
        SpringApplication.run(Provider01.class);
    }
}
